#ifndef _GAME_SERVER_H
#define _GAME_SERVER_H

#include <string>
#include "uv.h"

class CGameServer
{
public:
    CGameServer();
    ~CGameServer();

public:
    void run(std::string& startup_file);
    void loop(uv_idle_t* handle);
    void stop();

private:
    static void _idle_cb(uv_idle_t* handle);

private:
    uv_idle_t _idle;
};

#endif // !_GAME_SERVER_H
